package lormi.meipin.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;


public class Member implements Serializable{
	
	private static final long serialVersionUID = 1L;

	private Integer id;

    private String mobile;

    private Byte usertype;
    
    private Date createtime;

    private Date updatetime;
    
    public Member(){}
    
    public Member(String phone,Byte usertype){
    	this.mobile=phone;
    	this.usertype=usertype;
    	this.createtime = new Date();
    	this.updatetime = this.createtime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Byte getUsertype() {
        return usertype;
    }

    public void setUsertype(Byte usertype) {
        this.usertype = usertype;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }
}